<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" type="text/css" th:href="@{/stage/css/semantic.min.css}">
    <link rel="stylesheet" th:href="@{/stage/css/index.css}">
    <link rel="stylesheet" th:href="@{/stage/css/iconfont.css}"/>
    <link rel="icon" type="image/x-icon" th:href="@{${webconfig.websiteicon}}" />
    <script type="text/javascript" th:src="@{/stage/js/jquery-1.10.2.js}"></script>
</head>
<body>

<!--导航-->
<footer th:replace="fontdesk/head::footer-fragment-head"></footer>

<!--中间内容-->
<div  class="m-container-small m-padded-tb-big">
    <div class="ui container">
        <!--header-->
        <div class="ui top attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header">搜索结果</h3>
                </div>
                <div class="right aligned column">
                    共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${seli.total}"> 14 </h2> 个
                </div>
            </div>
        </div>

        <div class="ui top attached teal segment">
            <th:block th:if="${seli.total==0}">
                <h4 style="text-align:center">空空如也！</h4>
            </th:block>
            <th:block th:if="${seli.total!=0}">
                <div class="ui padded vertical segment m-padded-tb-large" th:each="sepa:${seli.list}">
                    <div class="ui middle aligned mobile reversed stackable grid">
                        <div class="eleven wide column">
                            <h3 class="ui header"><a th:href="@{'/blogarticle/'+${sepa.id}}" target="_blank" class="m-black" th:text="${sepa.articletitle}">2021年度总结</a></h3>
                            <p class="m-text" th:text="|${sepa.describel}......|">深圳打工人的一年......</p>
                            <div class="ui grid">
                                <div class="eleven wide column">
                                    <div class="ui mini horizontal link list">
                                        <div class="item">
                                            <img th:src="@{${webconfig.websiteadimg}}" alt="" class="ui avatar image">
                                            <div class="content"><a href="#" class="header" th:text="${webconfig.websiteadname}">零三</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="iconfont icon-rili"></i><span th:text="${#dates.format(sepa.createtime,'yyyy-MM-dd')}">2022-01-26</span>
                                        </div>
                                        <div class="item">
                                            <i class="iconfont icon-chakanmian"></i> <span th:text="${sepa.watchnumber}">157</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned five wide column">
                                    <a th:href="@{'/blogtype/'+${sepa.artype.articletypeid}}" target="_blank" th:text="${sepa.artype.artypename}" class="ui teal basic label m-padded-tiny m-text-thin">web前端</a>
                                </div>
                            </div>
                        </div>

                        <div class="five wide column">
                            <a th:href="@{'/blogarticle/'+${sepa.id}}" target="_blank">
                                <img th:src="@{${sepa.articleimg}}" alt="" class="ui rounded image">
                            </a>
                        </div>

                    </div>
                </div>
            </th:block>
        </div>

        <!--footer-->
        <div class="ui bottom attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <th:block th:if="${seli.pageNum>1}">
                        <a href="#" th:href="@{'/search?query='+${queryval}+'&pagenum='+${seli.prePage}}" class="ui mini teal basic button">上一页</a>
                    </th:block>

                </div>
                <div class="right aligned column">
                    <th:block th:if="${seli.nextPage>0}">
                        <a href="#" th:href="@{'/search?query='+${queryval}+'&pagenum='+${seli.nextPage}}" class="ui mini teal basic button">下一页</a>
                    </th:block>
                </div>
            </div>
        </div>

    </div>
</div>

<br>
<br>
<!--底部footer-->
<!--底部-->
<footer  th:replace="fontdesk/foot::footer-fragment">

</footer>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });

</script>
</body>
</html>